<template>
  <div>
       <div class="head">

        <div class="head_ul" >
          <div class="head_li">
            <div class="title">
              已售参保卡
              <el-tooltip class="explain" popper-class="explain_detail" effect="dark" content="消费者购买已参保卡数量" placement="top">
                 <span>?</span>
              </el-tooltip>
            </div>
            <div class="num ellipseHide">
              {{ info.alreadyInsuranceCardTotal }}<span class="numtxt">张</span>
            </div>
          </div>

          <div class="head_li">
            <div class="title">
              购卡金额
               <el-tooltip class="explain" popper-class="explain_detail" effect="dark" content="消费者购卡支付的金额" placement="top">
                 <span>?</span>
              </el-tooltip>
            </div>
            <div class="num ellipseHide">
              <span class="numtxt">¥</span>{{ info.useInsuranceMerchantMoneyTotal }}
            </div>
          </div>

          <div class="head_li">
            <div class="title">
              保额
               <el-tooltip class="explain" popper-class="explain_detail" effect="dark" content="商家配置的保额" placement="top">
                 <span>?</span>
              </el-tooltip>
            </div>
            <div class="num ellipseHide">
              <span class="numtxt">¥</span>{{ info.insuranceMerchantMoneyTotal }}
            </div>
          </div>

          <div class="head_li" style="border: 0">
            <div class="title">
              剩余保额
                 <el-tooltip class="explain" popper-class="explain_detail" effect="dark" content="商家剩余可用的保额总额" placement="top">
                 <span>?</span>
              </el-tooltip>
            </div>
            <div class="num ellipseHide">
              <span class="numtxt">¥</span>{{ info.usableInsuranceMerchantMoneyTotal }}
            </div>
          </div>

        </div>

        <div class="head_ul" >
 
          <div class="head_li">
            <div class="title">
              监管比例
               <el-tooltip class="explain" popper-class="explain_detail" effect="dark" content="商户监管资金的比例" placement="top">
                 <span>?</span>
              </el-tooltip>
            </div>
            <div class="num ellipseHide">
              {{ info.superviseRatio }}%
            </div>
          </div>

          <div class="head_li" style="border: 0">
            <div class="title">
                 监管金额
                 <el-tooltip class="explain" popper-class="explain_detail" effect="dark" content="监管账户余额" placement="top">
                 <span>?</span>
              </el-tooltip>
            </div>
            <div class="num ellipseHide">
              <span class="numtxt">¥</span>{{ info.superviseMoney }}
            </div>
          </div>

        </div>

    </div>
    <div class="assets_detail">
      <publicCard @getSuccess='getSuccess' />
    </div>
    <div class="bottom">
      <el-button type="primary" @click="back">返回</el-button>
    </div>
  </div>
</template>
<script>
// import { cardTotal, superviseInfo } from "@/api/merchants";
import publicCard from "../assetsComponents/publicCard";
export default {
  name: "assetsDetail",
  components: {
    publicCard
  },
  data() {
    return {
      changeIndex: 2,
      info: {},
      spinfo: {},
      loading: false,
      cardInfo: {},
     
    };
  },
  created() {},
  mounted() {
    // let query = this.$route.query;
    // this.id = query.id;
    // this.merchantId = query.merchantId
    // this.getinfo();
    // this.getsuperviseInfo();
  },
  methods: {
    clickChage(e) {
      this.changeIndex = e;
      if (e == 0) {
        this.type = 1;
      } else if (e == 1) {
        this.type = 2;
      } else {
        this.type = "";
      }
      this.getinfo();
    },
    back() {
      // this.$router.push({
      //   path: "/merchants/merchants-statistics",
      // });
      this.$router.go(-1);
    },
    getSuccess(e){
      console.log(e)
      this.info = e
    }
  },
};
</script>
<style lang="scss" scoped>

   @import "../../style/public";

</style>